<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <form>
        <div>
            <label>书名<input type="text"></label><br>
            <label>作者<input type="text"></label><br>
            <label>价格<input type="text"></label><br>
            <label>折扣<input type="text"></label><br>
            <button>计算折扣价</button>
        </div>
    </form>

    <script>
        let div = document.querySelector('div');
        let btn = document.querySelector('button')
        btn.onclick = function () {
            //       "这本书名为《"+ +"》," "编著的书，折扣为：" "折，折扣后价格为：" + 
        }
    </script>
</body>

</html>